package com.lianxi.mapper;


import com.lianxi.pojo.Role;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by sang on 2017/12/17.
 */

@Mapper
@Component
public interface RolesMapper {
    int addRoles(@Param("roles") String[] roles, @Param("uid") Integer uid);

    //根据用户获取用户角色信息
    List<Role> getRolesByUid(Integer uid);

    //获取角色列表
    List<Role> getAllRoles();
}
